package com.adv.ems.model.vo;

import com.adv.ems.db.entity.BuildingTypeInfoDO;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class BaseBuildingTypeVO {
    private List<Info> list;

    public BaseBuildingTypeVO() {
        this.list = new ArrayList<Info>();
    }

    @Data
    public static class Info {
        private Long id;
        private String name;
        private String code;

        public Info(BuildingTypeInfoDO b) {
            this.id = b.getId();
            this.name = b.getName();
            this.code = b.getCode();
        }
    }
}
